package com.csrcb.tool;

/**
 * @Classname RequestInfo
 * @Description 请求报文，内置固定的请求头，结合泛型的请求体
 * @Date 2021/11/15 10:03
 * @Created by gangye
 */
public class RequestInfo<T> {
    private RequestHead requestHead;
    private T requestBody;

    public RequestInfo() {
    }

    public RequestHead getRequestHead() {
        return requestHead;
    }

    public void setRequestHead(RequestHead requestHead) {
        this.requestHead = requestHead;
    }

    public T getRequestBody() {
        return requestBody;
    }

    public void setRequestBody(T requestBody) {
        this.requestBody = requestBody;
    }

    @Override
    public String toString() {
        return "RequestInfo{" +
                "requestHead=" + requestHead +
                ", requestBody=" + requestBody +
                '}';
    }
}
